package edu.sctu.alex.May.day20150525;

/**
 * Created by user03 on 2015/5/25.
 */
public class StringText {

    public static void main(String[] args) {
       StringUtil stringUtil = new StringUtil();
        System.out.println(stringUtil.equals("heuu","hello"));
        System.out.println(stringUtil.length("i am a boy"));
        System.out.println(stringUtil.subString("we are the hero",5));
        System.out.println(stringUtil.charAt("i love you",5));
        System.out.println(stringUtil.indexOf("i love you","love"));
        System.out.println(stringUtil.lastIndexOf("i love you you love me? ","love"));
        System.out.println(stringUtil.replace("i love you honey", "i", "alex"));
        String [] str = stringUtil.split("http://www.baidu.com", "//");
        for(String str0:str){
            System.out.println(str0);

        }
        System.out.println(stringUtil.toLowerCase("ALEX"));
        System.out.println(stringUtil.toUpperCase("mike"));
        System.out.println(stringUtil.trim("  just  a  test    "));
        System.out.println(stringUtil.valueOf(123));

    }
}
